/* custom.css */
/* 导航栏样式 */
.nav {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    height: 40px;
    margin-right: 1rem;
}

.nav-link-custom {
    color: #0d6efd;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.nav-link-custom:hover {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 150px;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.active .user-dropdown-menu {
    display: block;
}

.user-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
}

/* 主体内容容器 */
.main-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    overflow: hidden;
}

/* 响应式表格 */
.table-responsive {
    border-radius: 0.5rem;
}

/* 操作按钮组 */
.action-buttons .btn {
    margin: 0 0.2rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}

/* 分页容器 */
#pageContainer {
    margin: 1rem 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .navbar-buttons {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}